﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ecopsy.DataTier;
using AgencyEntityLib.Context;

namespace AgencyEntityLib.BaseEntity
{
    /// <summary>
    /// Discount
    /// </summary>
    public class Discount : EntitySingle
    {
        [EntityNonSerialized]
        protected override string TagName
        {
            get
            {
                return "Discount";
            }
        }

        private string _Name = string.Empty;
        public string Name
        {
            get
            {
                return _Name;
            }
            set { _Name = value; }
        }

        private string _Description = string.Empty;
        public string Description
        {
            get
            {
                return _Description;
            }
            set { _Description = value; }
        }

        private int  _Percent = 0;
        public int  Percent
        {
            get
            {
                return _Percent;
            }
            set { _Percent = value; }
        }

        private DateTime  _dtStart = DateTime .MinValue ;
        public DateTime dtStart
        {
            get
            {
                return _dtStart;
            }
            set { _dtStart = value; }
        }

        private DateTime _dtFinish = DateTime.MaxValue ;
        public DateTime dtFinish
        {
            get
            {
                return _dtFinish;
            }
            set { _dtFinish = value; }
        }

        private EntityList _SurfaceList = new EntityList();
        /// <summary>
        /// Набор поверхностей учавствующих в скидке
        /// </summary>
        public EntityList SurfaceList { get { return _SurfaceList; } set { _SurfaceList = value; } }

        private EntityList _SurfaceGroup = new EntityList();

        /// <summary>
        ///  Группы поверхностей учавствующие в скидке
        /// </summary>
        public EntityList SurfaceGroup { get { return _SurfaceGroup; } set { _SurfaceGroup = value; } }

    }
}

